
import Err404 from "../layout/ERR404/Err404";
import MusicHallNav from "../layout/musicHall/musicHallNav";

import Home from "../layout/musicHall/pages/home";
import New from "../layout/musicHall/pages/new";
import Singer from "../layout/musicHall/pages/singer";

import MyMusic from "../layout/myMusic/myMusic";



const routes = [
    {
        path: '/',
        element: <MusicHallNav />,
        children: [
            {
                path: '/',
                element: <Home />
            },
            {
                path: '/new',
                element: <New />
            },
            {
                path: '/singer',
                element: <Singer />
            }
        ]

    },
    {
        path: '/myMusic',
        element: <MyMusic />
    },
    {
        path: '*',
        element: <Err404 />
    }
]

export default routes;